package com.taijihuabao.modules.model.journalmodel.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.taijihuabao.modules.entity.ContentFieldsEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;
import java.util.List;

/**
 * 日志填写信息
 *
 * @author Tu
 * @date 2022/2/21 18:43
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ToString(callSuper = true)
@ApiModel("填写信息")
public class JournalContentVO {

    /**
     * 模板填写编码
     */
    @ApiModelProperty(value = "模板填写编码")
    private String code;

    /**
     * 模板编码
     */
    @ApiModelProperty(value = "模板编码")
    private String modelCode;

    /**
     * 模板名称
     */
    @ApiModelProperty(value = "模板名称")
    private String modelTitle;

    /**
     * 字段集合
     */
    @ApiModelProperty(value = "字段集合")
    private List<ContentFieldsEntity> modelFields;

    /**
     * 创建时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy/MM/dd", timezone = "GMT+8")
    @Field(value = "creator_time")
    private Date creatorTime;

    /**
     * 用户id
     */
    @Field(value = "user_id")
    private Long userId;

    /**
     * 用户名
     */
    @Field(value = "user_name")
    private String userName;

}
